#include "CppSocketsException.h"

CppSocketsException::CppSocketsException(int errorCode)
{
	this->errorCode = errorCode;
}

CppSocketsException::CppSocketsException(const string & description, int errorCode)
{
	this->errorCode = errorCode;
	this->description = description;
}

CppSocketsException::CppSocketsException(const CppSocketsException & exception)
{
	this->errorCode = exception.errorCode;
	this->description = exception.description;
}

void CppSocketsException::setErrorCode(int errorCode)
{
	this->errorCode = errorCode;
}

void CppSocketsException::setDescription(const string & description)
{
	this->description = description;
}

int CppSocketsException::getErrorCode() const
{
	return errorCode;
}

const string & CppSocketsException::getDescription() const
{
	return description;
}
